package com.lgkj.zhm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 设备在线情况对象 Device_Online
 *
 * @author 代星登
 * @date 2021-02-22
 */
public class DeviceOnline extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 设备名称 */

    private String deviceName;

    /** 控制器序列号 */
/*    @Excel(name = "控制器序列号")*/
    private String deviceSno;

    /** 设备类型 */
    /*@Excel(name = "设备类型")*/
    private String deviceType;

    /** 设备ip */
   /* @Excel(name = "设备ip")*/
    private String deviceIp;

    /** 在线情况 */
   /* @Excel(name = "在线情况")*/
    private String deviceOnline;

    /** 第一次上电时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    /*@Excel(name = "第一次上电时间", width = 30, dateFormat = "yyyy-MM-dd")*/
    private Date firstPowerTime;

    /** 最后上电时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
   /* @Excel(name = "最后上电时间", width = 30, dateFormat = "yyyy-MM-dd")*/
    private Date endPowerTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDeviceName(String deviceName)
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName()
    {
        return deviceName;
    }
    public void setDeviceSno(String deviceSno)
    {
        this.deviceSno = deviceSno;
    }

    public String getDeviceSno()
    {
        return deviceSno;
    }
    public void setDeviceType(String deviceType)
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType()
    {
        return deviceType;
    }
    public void setDeviceIp(String deviceIp)
    {
        this.deviceIp = deviceIp;
    }

    public String getDeviceIp()
    {
        return deviceIp;
    }
    public void setDeviceOnline(String deviceOnline)
    {
        this.deviceOnline = deviceOnline;
    }

    public String getDeviceOnline()
    {
        return deviceOnline;
    }
    public void setFirstPowerTime(Date firstPowerTime)
    {
        this.firstPowerTime = firstPowerTime;
    }

    public Date getFirstPowerTime()
    {
        return firstPowerTime;
    }
    public void setEndPowerTime(Date endPowerTime)
    {
        this.endPowerTime = endPowerTime;
    }

    public Date getEndPowerTime()
    {
        return endPowerTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceName", getDeviceName())
            .append("deviceSno", getDeviceSno())
            .append("deviceType", getDeviceType())
            .append("deviceIp", getDeviceIp())
            .append("deviceOnline", getDeviceOnline())
            .append("firstPowerTime", getFirstPowerTime())
            .append("endPowerTime", getEndPowerTime())
            .append("remark", getRemark())
            .toString();
    }
}
